package ui.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fy.fyzf.R;
import com.fy.fyzf.bean.DemanddetailBean;

import java.util.List;

public class MydemandDetailAdapter extends BaseQuickAdapter<DemanddetailBean.PublisherDetailsReleaseVoBean.ListBeanX, BaseViewHolder> {

    public MydemandDetailAdapter() {
        super(R.layout.item_my_demand_detail);
    }

    @Override
    protected void convert(BaseViewHolder helper, DemanddetailBean.PublisherDetailsReleaseVoBean.ListBeanX item) {
        helper.setText(R.id.tv_name, item.getFloorName())
                .setText(R.id.tv_company, item.getHousingArea()+"m²  |  "+item.getAreaName())
                .setText(R.id.tv_time, item.getCreateTime());
        helper.addOnClickListener(R.id.tv_look);
        helper.addOnClickListener(R.id.tv_sign);

    }
}
